/**
    费用类型 组件
**/
(function (vc) {

    vc.extends({
        propTypes: {
            callBackListener: vc.propTypes.string, //父组件名称
            callBackFunction: vc.propTypes.string //父组件监听方法
        },
        data: {
            viewHousekeepingFeeTypeInfo: {
                index: 0,
                flowComponent: 'viewHousekeepingFeeTypeInfo',
                feeTypeCd: '',
                typeName: '',
                isShow: '',
                remark: '',

            }
        },
        _initMethod: function () {
            //根据请求参数查询 查询 业主信息
            $that._loadHousekeepingFeeTypeInfoData();
        },
        _initEvent: function () {
            vc.on('viewHousekeepingFeeTypeInfo', 'chooseHousekeepingFeeType', function (_app) {
                vc.copyObject(_app, $that.viewHousekeepingFeeTypeInfo);
                vc.emit($props.callBackListener, $props.callBackFunction, $that.viewHousekeepingFeeTypeInfo);
            });

            vc.on('viewHousekeepingFeeTypeInfo', 'onIndex', function (_index) {
                $that.viewHousekeepingFeeTypeInfo.index = _index;
            });

        },
        methods: {

            _openSelectHousekeepingFeeTypeInfoModel() {
                vc.emit('chooseHousekeepingFeeType', 'openChooseHousekeepingFeeTypeModel', {});
            },
            _openAddHousekeepingFeeTypeInfoModel() {
                vc.emit('addHousekeepingFeeType', 'openAddHousekeepingFeeTypeModal', {});
            },
            _loadHousekeepingFeeTypeInfoData: function () {

            }
        }
    });

})(window.vc);
